image: Use the element name image
authorMatthias Clasen <mclasen@redhat.com>
Fri, 23 Oct 2015 04:04:47 +0000 (00:04 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 23 Oct 2015 04:04:47 +0000 (00:04 -0400)
Set hte element name on the CSS node.

gtk/gtkimage.c

index 0fad7464061dacc20a259a1751293dc2ed639807..2e6330a06fb179215a55e62c3782d166bb9da416 100644 (file)
  * allows you to convert an image into a C variable declaration, which
  * can then be loaded into a #GdkPixbuf using
  * gdk_pixbuf_new_from_inline().
+ *
+ * # CSS nodes
+ *
+ * GtkImage has a single CSS node with the name image.
  */
 
 
@@ -386,6 +390,7 @@ gtk_image_class_init (GtkImageClass *class)
   g_object_class_install_properties (gobject_class, NUM_PROPERTIES, image_props);
 
   gtk_widget_class_set_accessible_type (widget_class, GTK_TYPE_IMAGE_ACCESSIBLE);
+  gtk_widget_class_set_css_name (widget_class, "image");
 }
 
 static void